import { http } from '@/utils/http'
// 获取菜品信息
export const getadd = (data: unknown) => {
  return http({
    method: 'GET',
    url: `/jx/store_food/queryStoreFoodsByState?storeId=${data.storeId}&state=${data.state}`
  })
}

// 删除菜品信息
export const delfoodmsg = (data: unknown) => {
  return http({
    method: 'POST',
    url: `/jx/store_food/updateStoreFoodsByState`,
    data
  })
}
// 查询店铺销售评分
export const getping = (data: unknown) => {
  return http({
    method: 'GET',
    url: `/jx/store_sales_data/queryStoreSalesByStoreId?storeId=${data.storeId}&startDate=${data.startDate}&endDate=${data.endDate}`
  })
}
// 查询每天营业数据概览
export const getpingmsg = (data: unknown) => {
  return http({
    method: 'GET',
    url: `/jx/store_sales_data/queryDailySaleSummary?storeId=${data.storeId}&startDate=${data.startDate}&endDate=${data.endDate}`
  })
}
